package Template_Method_Design_Pattern;

import java.text.DateFormat;

//模板方法设计模式
//用于减少重复代码
public class Test {
    public static void main(String[] args) {
        A a = new A();
        a.sing();
        B b = new B();
        b.sing();
        C c1 = new B();
        c1.sing();
        C c2 = new A();
        c2.sing();
    }
}
